@import "reset";
/* 共有 */
html,
body {
  height: 100%;
  overflow-y: hidden;

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.7);
    background-color: rgb(208, 208, 208);
  }

  ::-webkit-input-placeholder {
    color: white;
  }
  ::-webkit-scrollbar-thumb:hover {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    // background-image: url(../upload/aboluo.png);
    // background-size: 40px;
    // background-repeat: no-repeat;
    // background-position-y: center;
    // background-position-x: right;
    background-color: rgba(152, 152, 152, 0.1);
  }
}
.printer {
  cursor: pointer;
}
/* 主体 */
#container {
  display: flex;
  height: 100%;
  flex-direction: column;
  min-width: 1200px;
  // 滚动轴浮动样式
}
#top {
  height: 54px;
  padding: 0 10px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #65c178;

  div:first-child {
    line-height: 54px;
    h2,
    small {
      color: white;
    }
    ul,
    h2 {
      display: inline-block;
      margin: 0 2px;
    }
    ul {
      li {
        display: inline-block;
      }
      li:last-child {
        position: relative;
        span {
          position: absolute;
          top: 0;
          right: -5px;
          width: 15px;
          height: 15px;
          background-color: black;
          color: white;
          text-align: center;
          line-height: 10px;
          font-size: 2px;
        }
      }
    }
  }

  div:last-child {
    width: 18%;
    min-width: 150px;
    position: relative;

    input {
      width: 100%;
      border-radius: 20px;
      border: none;
      height: 32px;
      padding: 0 15px;
      background-color: #56a466;
      color: white;
    }

    span {
      display: inline-block;
      width: 17px;
      height: 17px;
      background: url(../upload/sch_btn.png);
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
    }
  }
}

#bottom {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow-y: hidden;

  #left {
    overflow: hidden;
    width: 16%;
    min-width: 165px;
    box-shadow: 3px 0px 10px #333;
    header {
      width: 100%;
      height: 60px;
      background-color: black;
      display: flex;
      padding: 0 11px;
      justify-content: space-between;
      align-items: center;
      nav {
        background: url(../img/menu_btn.png);
        width: 20px;
        height: 20px;
      }
    }
    .user {
      width: 100%;
      .avatar {
        display: flex;

        justify-content: center;
        align-items: center;
        position: relative;

        .avatar-profile {
          margin: 20px auto;
          width: 142px;
          height: 142px;
          background: url(../img/avatar_bg.png);
          background-size: cover;
          animation: rotate 2s linear infinite;
          z-index: 1;
          // box-shadow: 3px 0px 15px rgb(44, 42, 42);
          border-radius: 50%;
        }
        .avatar-profile2 {
          width: 162px;
          height: 162px;
          background: url(../img/avatar_bg.png) no-repeat;
          animation: rotate 8s linear 2s infinite;
          background-position-x: 5px;
          background-position-y: 5px;
          position: absolute;
          border-radius: 50%;
          // box-shadow: 4px 0px 25px rgb(44, 42, 42);
        }
        img {
          display: block;
          width: 130px;
          height: 130px;
          border-radius: 50%;
          position: absolute;
          z-index: 2;
        }
        img:hover ~ .avatar-profile2 {
          animation: rotate 0.4s linear infinite;
        }
        img:hover {
          animation: rotate 8s linear infinite;
        }

        @keyframes rotate {
          0% {
            transform: rotateZ(0deg); /*从0度开始*/
          }
          100% {
            transform: rotateZ(360deg); /*360度结束*/
          }
        }
      }
    }
    div:last-child {
      text-align: center;
      h2,
      p {
        color: black;
        margin: 10px;\
      }
      p {
        height: 40px;
      }
      border-bottom: 1px solid rgb(201, 201, 201);
    }
    footer {
      margin-top: 30px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      ul {
        li {
          margin: 10px auto;
          icon {
            vertical-align: bottom;
            display: inline-block;
            width: 20px;
            height: 20px;
            background: url("../upload/ico_tv.png");
          }
          &:nth-child(2) > icon {
            background: url(../upload/ico_video_2.png);
          }
          &:nth-child(3) > icon {
            background: url(../upload/ico_news.png);
          }
        }
      }
    }
  }
  #main {
    flex: 1;
    height: 100%;
    overflow-y: scroll;

    .head {
      width: 100%;
      .banner {
        width: 100%;
        height: 400px;
        overflow: hidden;
        position: relative;

        @media screen and (min-width: 1200px) {
          img:hover {
            margin-top: -50px;
          }
        }

        @media screen and (max-width: 1200px) {
          img:hover {
            width: 1024px;
          }
        }
        img {
          width: 100%;
          display: block;
          transition: all 0.25s linear;
        }
        .banner-title {
          bottom: 0px;
          width: 100%;
          height: 80px;
          background: rgba(0, 0, 0, 0.5);
          position: absolute;
          padding: 0 20px;
          img {
            width: 20px;
            height: 20px;
            display: inline-block;
          }
          h2 {
            color: white;
            line-height: 80px;
            display: inline-block;
            margin-left: 10px;
          }
          div {
            position: absolute;
            width: 150px;
            height: 50%;
            top: 15px;
            right: 20px;
            display: flex;
            justify-content: space-between;
            span {
              display: block;
              img,
              span {
                display: inline-block;
                vertical-align: bottom;
              }
            }
          }
        }
      }
    }
    .item_list {
      width: 100%;
      margin-top: 20px;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      .item {
        width: 48%;
        box-shadow: 2px 0px 10px rgb(110, 110, 110);
        margin-bottom: 60px;

        .banner_tv {
          height: 250px;
          overflow: hidden;
        }
        span {
          width: 100%;
          display: inline-block;
          position: relative;
          .zoom {
            zoom: 0.8;
          }
          img {
            width: 100%;
            margin-top: -30px;
            display: block;
            transition: all 0.25s linear;
            &:hover {
              margin-top: -60px;
            }
          }
          span {
            width: 100%;
            display: inline-block;
            position: absolute;
            bottom: 20px;
            padding: 0 20px;
            img,
            h2 {
              display: inline-block;
              color: white;
            }
            img {
              width: 20px;
              height: 20px;
              background-color: black;
            }
          }
        }

        .user_review {
          width: 100%;
          height: 199px;
          display: flex;
          flex-direction: column;
          li {
            width: 100%;
            display: inline-block;
            position: relative;
            header {
              width: 100%;
              height: 55px;
              display: flex;
              justify-content: space-between;
              padding: 0 15px;
              align-items: center;
              .zoom_04x {
                zoom: 0.4;
              }
              .avatar {
                height: 100%;
                border: none;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 10px;
                .avatar-profile {
                  width: 142px;
                  height: 142px;
                  background: url(../img/media_user_bg.jpg);
                  background-size: cover;
                  border-radius: 50%;
                }
                img {
                  display: block;
                  width: 130px;
                  height: 130px;
                  border-radius: 50%;
                  margin-left: 5px;
                  margin-top: 5px;
                }
                h4,
                p {
                  color: black;
                }
                h4 {
                  font-size: 50px;
                }
                p {
                  font-size: 35px;
                }
                .jieshao {
                  margin-left: 20px;
                }
              }

              button {
                border-radius: 5px;
                background-color: white;
                color: black;
                width: 100px;
                height: 40px;
                border: 1px solid rgb(133, 133, 133);
                line-height: 40px;
                &::before {
                  content: "";
                  display: inline-block;
                  background: url(../img/btn_wifi.png) no-repeat;
                  width: 20px;
                  height: 20px;
                  vertical-align: middle;
                }
              }
            }
            .duanluo {
              margin-top: 20px;
              width: 100%;
              color: #333;
              padding: 0 20px;
              overflow: hidden;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-line-clamp: 3;
              -webkit-box-orient: vertical;
            }
          }
          .review {
            width: 100%;

            ul {
              margin-top: 10px;
              display: flex;
              width: 100%;
              li {
                width: 27%;
                height: 90px;
                background-color: #65c178;
                display: flex;
                justify-content: center;
                align-items: center;
                position: relative;
                text-align: center;
                &::after {
                  content: "";
                  height: 70px;
                  display: block;
                  border-left: 1px solid rgb(230, 230, 230);
                  right: 0;
                  top: 50%;
                  transform: translateY(-35px);
                  position: absolute;
                }
              }
              h2,
              p {
                color: rgb(0, 0, 0);
              }
              li:last-child {
                background-color: black;
                flex: 1;
                h2,
                p {
                  color: white;
                }
              }
              li:last-child::after {
                visibility: hidden;
              }
            }
          }
        }
      }
    }
  }

  article:last-child {
    padding: 15px 15px;
    width: 20%;
    background-color: rgb(240, 240, 240);
    height: 100%;
    overflow-y: scroll;
    ul {
      li:nth-child(1) {
        font-size: 20px;
        color: black;
      }
      li:nth-child(2) {
        display: flex;
        flex-wrap: wrap;

        a {
          width: 53px;
          height: 53px;
          display: block;
          position: relative;
          margin: 10px 10px 0px 0px;
        }
        img {
          border-radius: 50%;
          width: 53px;
          display: block;
        }
      }
    }
    .user_list {
      margin-bottom: 15px;
    }
    .message {
      width: 100%;
      .me_head {
        width: 100%;
        height: 56px;
        background-color: #455469;
        padding: 15px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        h4 {
          line-height: 56px;
          color: rgb(220, 220, 220);
          span {
            margin-right: 20px;
            color: #69c37b;
            font-size: 30px;
            vertical-align: middle;
          }
        }
      }

      .me_body {
        width: 100%;
        padding: 20px 10px;
        background-color: white;
        overflow-x: scroll;
        height: 360px;

        .huabu {
          width: 120%;
          .body_odd {
            .user_title {
              width: 100%;
              display: flex;
              flex-direction: row;
              justify-content: center;
              align-items: center;
              margin-bottom: 15px;
              img {
                border-radius: 50%;
                width: 54px;
                margin: 0px 15px;
              }
            }
            ._reverse {
              display: flex;
              flex-direction: row-reverse;
            }

            .user_message {
              font-size: 12px;
              font-family: "微软雅黑";
              color: rgb(160, 166, 175);
              padding: 15px 12px;
              border-width: 1px;
              border-style: solid;
              border-color: rgb(227, 231, 238);
              border-image: initial;
              border-radius: 6px;
              color: black;
            }
          }
        }
      }
    }
    .ad {
      width: 100%;
      img {
        margin: 15px auto;
        display: block;
      }
      img:nth-child(1) {
        width: 261px;
        height: 180px;
      }
      img:nth-child(2) {
        width: 261px;
        height: 165px;
      }
    }
  }
}
.active::after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: url(../upload/point.jpg);
  position: absolute;
  border-radius: 50%;
  top: 0;
  right: 0;
}
